package com.qzsoft.zhjd.cement.modules.cementproducemonitor.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.jeemis.common.utils.ConvertDictUtils;
import com.qzsoft.zhjd.cement.modules.cementproducemonitor.dto.CementProduceMonitorDto;
import com.qzsoft.zhjd.cement.modules.cementproducemonitor.mapper.CementProduceMonitorMapper;
import com.qzsoft.zhjd.cement.modules.cementproducemonitor.service.CementProduceMonitorService;
import com.qzsoft.zhjd.common.annotation.ZhjdDataFilter;
import com.qzsoft.zhjd.common.components.BaseServiceComponent;

/**
 * @ClassName CementProduceMonitorServiceImpl
 * @Description 生产监控业务接口实现
 * @author linhuawei
 * @since 2022-04-29
 */
@Service
public class CementProduceMonitorServiceImpl implements CementProduceMonitorService {

    @Autowired
    private CementProduceMonitorMapper cementProduceMonitorMapper;

    @Autowired
    private BaseServiceComponent baseServiceComponent;

    @Override
    @ZhjdDataFilter(tableAlias = "t1")
    public IPage<CementProduceMonitorDto> page(Map<String, Object> params) {
        IPage<CementProduceMonitorDto> page = baseServiceComponent.getPage(params, CementProduceMonitorDto.class);
        IPage<CementProduceMonitorDto> dataPage = cementProduceMonitorMapper.page(page, params);
        return ConvertDictUtils.formatDicDataPage(dataPage);
    }

}
